package com.wyl.condition.query.form;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.wyl.condition.query.ConditionValue;
import com.wyl.enumeration.FormItemTypeEnum;

/**
 * @author 吴宇亮 on 2023/4/21 9:30
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FormItemConditionValue extends ConditionValue {

    /**
     * 标题
     */
    private String label;
    /**
     * 用于给前端渲染
     */
    private FormItemTypeEnum formItemType;
    /**
     * 是否必填
     */
    private boolean required;

    public String getLabel() {
        return label;
    }

    public FormItemConditionValue setLabel(String label) {
        this.label = label;
        return this;
    }

    public FormItemTypeEnum getFormItemType() {
        return formItemType;
    }

    public FormItemConditionValue setFormItemType(FormItemTypeEnum formItemType) {
        this.formItemType = formItemType;
        return this;
    }

    public boolean isRequired() {
        return required;
    }

    public FormItemConditionValue setRequired(boolean required) {
        this.required = required;
        return this;
    }
}
